package com.ylsk.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ylsk.common.core.domain.MybatisPlusBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ylsk.common.annotation.Excel;
import com.ylsk.common.core.domain.BaseEntity;

import java.util.List;

/**
 * apk包管理对象 sys_apk_package
 *
 * @author ysy
 * @date 2024-01-24
 */
@TableName("sys_apk_package")
public class SysApkPackage extends MybatisPlusBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** apk包id */
    @TableId
    private Long apkPackageId;

    /** apk包名称 */
    @Excel(name = "apk包名称")
    private String apkPackageName;

    /** 版本 */
    @Excel(name = "版本")
    private String versionCode;

    /** 更新内容 */
    private String updateContent;

    /** 包大小 */
    @Excel(name = "包大小")
    private String packageSize;

    /** 是否强制更新（0否  1 是） */
    @Excel(name = "是否强制更新", readConverterExp = "0=否,1=是")
    private Long forceUpdate;

    /** 二维码地址 */
    private String qrCodeUrl;

    /** apkPackageFileId */
    private Long apkPackageFileId;

    /**
     * apkPackFile
     */
    @TableField(exist = false)
    private String apkPackageFile;

    /**
     * apkPackFile
     */
    @TableField(exist = false)
    private List<FileSimple> apkPackageFileData;

    public void setApkPackageId(Long apkPackageId)
    {
        this.apkPackageId = apkPackageId;
    }

    public Long getApkPackageId()
    {
        return apkPackageId;
    }
    public void setApkPackageName(String apkPackageName)
    {
        this.apkPackageName = apkPackageName;
    }

    public String getApkPackageName()
    {
        return apkPackageName;
    }
    public void setVersionCode(String versionCode)
    {
        this.versionCode = versionCode;
    }

    public String getVersionCode()
    {
        return versionCode;
    }
    public void setUpdateContent(String updateContent)
    {
        this.updateContent = updateContent;
    }

    public String getUpdateContent()
    {
        return updateContent;
    }
    public void setPackageSize(String packageSize)
    {
        this.packageSize = packageSize;
    }

    public String getPackageSize()
    {
        return packageSize;
    }
    public void setForceUpdate(Long forceUpdate)
    {
        this.forceUpdate = forceUpdate;
    }

    public Long getForceUpdate()
    {
        return forceUpdate;
    }
    public void setQrCodeUrl(String qrCodeUrl)
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl()
    {
        return qrCodeUrl;
    }

    public Long getApkPackageFileId() {
        return apkPackageFileId;
    }

    public void setApkPackageFileId(Long apkPackageFileId) {
        this.apkPackageFileId = apkPackageFileId;
    }

    public String getApkPackageFile() {
        return apkPackageFile;
    }

    public void setApkPackageFile(String apkPackageFile) {
        this.apkPackageFile = apkPackageFile;
    }

    public List<FileSimple> getApkPackageFileData() {
        return apkPackageFileData;
    }

    public void setApkPackageFileData(List<FileSimple> apkPackageFileData) {
        this.apkPackageFileData = apkPackageFileData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apkPackageId", getApkPackageId())
            .append("apkPackageName", getApkPackageName())
            .append("versionCode", getVersionCode())
            .append("updateContent", getUpdateContent())
            .append("packageSize", getPackageSize())
            .append("forceUpdate", getForceUpdate())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
